package com.xindz.cn.mvptest.login;

import com.xindz.cn.mvptest.utils.HttpTask;
import com.xindz.cn.mvptest.utils.HttpUtils;

/**
 * @name MvpTest
 * @class name：com.xindz.cn.mvptest.login
 * @describe describe
 * @anthor XINDZ
 * @time 2017/10/27 9:29
 * @change
 * @chang time
 * @class describe
 */
public class LoginModel {
    public void login(String username, String password, final HttpUtils.OnHttpResultListener onHttpResultListener) {
        onHttpResultListener.onResult("没事");
//        HttpTask httpTask = new HttpTask(new HttpUtils.OnHttpResultListener() {
//            @Override
//            public void onResult(String result) {
//                onHttpResultListener.onResult(result);
//            }
//        });
//        httpTask.execute("http://192.168.57.1:8080/Dream_6_19_LoginServer/LoginServlet", username, password);
    }
}
